﻿/* 2012/9/11 */
using System;
using System.Diagnostics;

namespace Cosmos
{
    public static class ExceptionReporter
    {
        public static void ReportException(Exception ex)
        {
            Debug.Write("Exception source: ");
            Debug.WriteLine(ex.Source);
            Debug.Write("Exception message: ");
            Debug.WriteLine(ex.Message);
            Debug.WriteLine(ex.StackTrace);
        }

        public static void ReportException(Exception ex, string message)
        {
            Debug.WriteLine(message);
            ReportException(ex);
        }
    }
}
